package main.java.cn.wolfcode.domain;
import cn.wolfcode.enums.ActivityEnum;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Activity {
    /** */
    private Long id;

    /** 主题*/
    private String title;

    /** 类型(单选0/多选1/ 等等)*/
    private Integer type;

    /** 状态(1投票中/0停止投票)*/
    private Boolean status;

    public String toJson() {
        return JSON.toJSONString(this);
    }

    public String getTypeName(){
        return ActivityEnum.findName(type);
    }

}